package org.apache.dubbo.remoting.exchange.support;

import org.apache.dubbo.remoting.RemotingException;
import org.apache.dubbo.remoting.exchange.ExchangeChannel;

/**
 * Replier. (API, Prototype, ThreadSafe)
 */
public interface Replier<T> {

    /**
     * reply.
     *
     * @param channel channel
     * @param request request
     * @return response
     * @throws RemotingException exception
     */
    Object reply(ExchangeChannel channel,T request);
}
